package edu.ccit.shudong.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class MessageDTO {
    private Long id;
    private Long postId;
    private Long from;
    private Long to;
    private String content;
    private List<MessageDTO> children;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
